import request from '@/utils/request'

/**
 * 友链申请
 * @param {*} query 
 * @returns 
 */
export const applyFriendService = (query) => {
    return request.post('/user/friend', query)
}

/**
 * 用户端分页查询可用友链列表
 * @param {*} pageQuery 
 * @returns 
 */
export const getFriendListService = (pageQuery) => {
    return request.get('/user/friend/page', {
        params: pageQuery
    })
}